package cn.shop.admin.entity.backPermissionModule;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 总后台 权限表(BackPermission)表实体类
 *
 * @author jzw
 * @since 2021-11-08 13:01:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BackPermissionVO {


	/**
	 * 名称
	 */
	@JsonProperty("label")
	private String title;

	/**
	 * 名称
	 */
	@JsonProperty("key")
	private Long id;

	/**
	 * 子集
	 */
	@TableField(exist = false)
	@JsonInclude(Include.NON_EMPTY)
	private List<BackPermissionVO> children;

}

